<?php
/**
 *
 * @author 李大牛家的牛 (scafel@163.com)
 * @className layout-header.blade.php
 * @createDate 2025/7/28 - 21:49
 * @description
 **/
?>

<div class="layui-header">
    <div class="layui-logo ">layout demo</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
        <!-- 移动端显示 -->
        <li class="layui-nav-item layui-show-xs-inline-block" lay-unselect>
            <a href="javascript:void(0);" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </a>
        </li>
        <li class="layui-nav-item" lay-unselect>
            <a href="javascript:void(0);" lay-header-event="reloadIFrame">
                <i class="layui-icon layui-icon-refresh-1"></i>
            </a>
        </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item layui-hide layui-show-sm-inline-block">
            <a href="javascript:void(0);">
                <img src="//unpkg.com/outeres@0.0.10/img/layui/icon-v2.png" class="layui-nav-img" alt="用户头像">
                {{ $admin->lta004 }}
            </a>
            <dl class="layui-nav-child">
                <dd><a href="javascript:void(0);">当前角色：{{ $role->ltar001 }}</a></dd>
                <hr />
                <dd>
                    <a href="javascript:void(0);" lay-header-event="changeInfo">
                        <i class="layui-icon layui-icon-user"></i>
                        个人资料
                    </a>
                </dd>
                <dd>
                    <a href="javascript:void(0);" lay-header-event="changePwd">
                        <i class="layui-icon layui-icon-password"></i>
                        修改密码
                    </a>
                </dd>
                <hr />
                <dd>
                    <a href="javascript:void(0);" lay-header-event="clearCache">
                        <i class="layui-icon layui-icon-delete"></i>
                        清空缓存
                    </a>
                </dd>
                <dd>
                    <a href="javascript:void(0);" lay-header-event="loginOut">
                        <i class="layui-icon layui-icon-logout"></i>
                        退出登录
                    </a>
                </dd>
            </dl>
        </li>
        <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
            <a href="javascript:;">
                <i class="layui-icon layui-icon-more-vertical"></i>
            </a>
        </li>
    </ul>
</div>
